import Dependencies._
import sbt.Keys._
import sbt._

object BuildSettings {


  ///////////////////////////////////////////////////////////////
  // projects default setting
  ///////////////////////////////////////////////////////////////
  lazy val commonSettings = Seq(
    version := "1.0.0",
    startYear := Some(2015),
    scalaVersion := "2.11.7",
    scalacOptions := Seq(
      "-encoding", "utf8", "-Xexperimental", "-feature", "-unchecked", "-deprecation", "-explaintypes",
      "-Yno-adapted-args", "-Ywarn-dead-code", "-Ywarn-unused", "-Yrangepos"), //"-Ylog-classpath",
    javacOptions := Seq(
      "-encoding", "utf8", "-deprecation", "-Xlint:unchecked", "-Xlint:deprecation"),
    resolvers ++= Seq(
      "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
      "releases" at "http://oss.sonatype.org/content/repositories/releases",
      "maven.mirrorid" at "http://mirrors.ibiblio.org/pub/mirrors/maven2/",
      "snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
      "Typesafe Snapshots" at "http://repo.typesafe.com/typesafe/snapshots/",
      "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases",
      "Local Maven Repository" at "file://" + Path.userHome.absolutePath + "/.ivy2"),
    libraryDependencies ++= (__provided(_scala) ++ __provided(_typesafeConfig) ++
      __provided(_slf4j) ++ __provided(_logback) ++ __provided(_scalaLogging) ++ __test(_scalatest)),
    sources in(Compile, doc) := Seq.empty,
    publishArtifact in(Compile, packageDoc) := false,
    offline := true)

}